package com.cloud.api.domain.service;

import com.cloud.api.utils.ExcelUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@ExcelUtils.ExcelSheet(watermark = @ExcelUtils.Watermark(type = 0)
)
public class ServiceExportExcel implements Serializable {

    @Schema(description = "所属销售公司")
    @ExcelUtils.ExcelExport(name = "table.field.salesCompany",kvs = {
            @ExcelUtils.KV(k = "0", v = "深圳二八开投资集团有限公司"),
            @ExcelUtils.KV(k = "1", v = "山西太行成功汽车销售有限公司")
    })
    private String salesCompany;

    @Schema(description = "分类")
    @ExcelUtils.ExcelExport(name = "table.field.category",kvs = {
            @ExcelUtils.KV(k = "1", v = "服务站"),
            @ExcelUtils.KV(k = "0", v = "经销店")
    })
    private String category;

    @Schema(description = "名称")
    @ExcelUtils.ExcelExport(name = "table.field.name")
    private String name;

    @Schema(description = "省份")
    @ExcelUtils.ExcelExport(name = "table.field.province")
    private String province;

    @Schema(description = "城市")
    @ExcelUtils.ExcelExport(name = "table.field.city")
    private String city;

    @Schema(description = "联系人")
    @ExcelUtils.ExcelExport(name = "table.field.contactPerson")
    private String contactPerson;

    @Schema(description = "授权结束日期")
    @ExcelUtils.ExcelExport(name = "table.field.authorizationEnd",columnWidth = 20)
    private String authorizationEnd;

    @Schema(description = "状态(0-禁用，1-启用)")
    @ExcelUtils.ExcelExport(name = "table.field.serviceStatus", kvs = {
            @ExcelUtils.KV( k = "0", v = "停用"),
            @ExcelUtils.KV(k = "1", v = "启用")
    })
    private String status;


    @Schema(description = "数据修改时间")
    @ExcelUtils.ExcelExport(name = "table.field.updateTime",columnWidth = 20)
    private String updateTime;

}
